﻿#ifndef STASHMANAGE_H
#define STASHMANAGE_H
#include<QObject>
#include"StashManageControllerObject.h"
#include"StashManageModel.h"
#include"LoginController.h"
#include"MainController.h"
class LoginController;
class MainController;
//仓库管理控制器
class StashManageController :public StashManageControllerObject
{
	Q_OBJECT
public:
	StashManageController(QObject* parent = nullptr);
	~StashManageController();
public:
	LoginController* loginController()const;
	MainController* mainController()const;
public:
	void openLogin();
	void openMain();
public:
	void loginSlots(const XQUserData& user);
	void requestLoginSlots();
protected://隐藏的函数
	//初始化
	void init();
private:
	QPointer<LoginController>m_login = nullptr;
	QPointer<MainController>m_main = nullptr;
};
#endif // !StashManage_H
